<template>
  <div class="app-container home">
    <t-ag-grid
      align="center"
      header-align="center"
      :suppress-row-transform="true"
      :tooltipShowDelay="0"
      :columnDefs="column"
      :rowData="tableData"
      :defaultColDef = "{
        // suppressMenu:true
        menuTabs: ['filterMenuTab', 'columnsMenuTab']
      }"
      @selection-changed="selectionChanged"
    />
  </div>
</template>

<script setup name="LossResponse">
  import { column, queryTableData  } from './config'

  const tableData = ref([])

  queryTableData().then((res) => {
    tableData.value = res.rows
  })
</script>